<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('combobox/combobox-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '&lt;div id=&quot;ks-combobox-invalid-el-';
        var id0 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 1, undefined, false);
        buffer += getExpressionUtil(id0, true);
        buffer += '&quot;\r\n     class=&quot;';
        var config2 = {};
        var params3 = [];
        params3.push('invalid-el');
        config2.params = params3;
        var id1 = getPropertyOrRunCommandUtil(engine, scopes, config2, &quot;getBaseCssClasses&quot;, 0, 2, true, undefined);
        buffer += id1;
        buffer += '&quot;&gt;\r\n    &lt;div class=&quot;';
        var config5 = {};
        var params6 = [];
        params6.push('invalid-inner');
        config5.params = params6;
        var id4 = getPropertyOrRunCommandUtil(engine, scopes, config5, &quot;getBaseCssClasses&quot;, 0, 3, true, undefined);
        buffer += id4;
        buffer += '&quot;&gt;&lt;/div&gt;\r\n&lt;/div&gt;\r\n\r\n';
        var config7 = {};
        var params8 = [];
        var id9 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;hasTrigger&quot;, 0, 6, undefined, true);
        params8.push(id9);
        config7.params = params8;
        config7.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n&lt;div id=&quot;ks-combobox-trigger-';
            var id10 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 7, undefined, false);
            buffer += getExpressionUtil(id10, true);
            buffer += '&quot;\r\n     class=&quot;';
            var config12 = {};
            var params13 = [];
            params13.push('trigger');
            config12.params = params13;
            var id11 = getPropertyOrRunCommandUtil(engine, scopes, config12, &quot;getBaseCssClasses&quot;, 0, 8, true, undefined);
            buffer += id11;
            buffer += '&quot;&gt;\r\n    &lt;div class=&quot;';
            var config15 = {};
            var params16 = [];
            params16.push('trigger-inner');
            config15.params = params16;
            var id14 = getPropertyOrRunCommandUtil(engine, scopes, config15, &quot;getBaseCssClasses&quot;, 0, 9, true, undefined);
            buffer += id14;
            buffer += '&quot;&gt;&amp;#x25BC;&lt;/div&gt;\r\n&lt;/div&gt;\r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config7, &quot;if&quot;, 6);
        buffer += '\r\n\r\n&lt;div class=&quot;';
        var config18 = {};
        var params19 = [];
        params19.push('input-wrap');
        config18.params = params19;
        var id17 = getPropertyOrRunCommandUtil(engine, scopes, config18, &quot;getBaseCssClasses&quot;, 0, 13, true, undefined);
        buffer += id17;
        buffer += '&quot;&gt;\r\n\r\n    &lt;input id=&quot;ks-combobox-input-';
        var id20 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 15, undefined, false);
        buffer += getExpressionUtil(id20, true);
        buffer += '&quot;\r\n           aria-haspopup=&quot;true&quot;\r\n           aria-autocomplete=&quot;list&quot;\r\n           aria-haspopup=&quot;true&quot;\r\n           role=&quot;autocomplete&quot;\r\n           aria-expanded=&quot;false&quot;\r\n\r\n    ';
        var config21 = {};
        var params22 = [];
        var id23 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;disabled&quot;, 0, 22, undefined, true);
        params22.push(id23);
        config21.params = params22;
        config21.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n    disabled\r\n    ';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config21, &quot;if&quot;, 22);
        buffer += '\r\n\r\n    autocomplete=&quot;off&quot;\r\n    class=&quot;';
        var config25 = {};
        var params26 = [];
        params26.push('input');
        config25.params = params26;
        var id24 = getPropertyOrRunCommandUtil(engine, scopes, config25, &quot;getBaseCssClasses&quot;, 0, 27, true, undefined);
        buffer += id24;
        buffer += '&quot;\r\n\r\n    value=&quot;';
        var id27 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;value&quot;, 0, 29, undefined, false);
        buffer += getExpressionUtil(id27, true);
        buffer += '&quot;\r\n    /&gt;\r\n\r\n\r\n    &lt;label id=&quot;ks-combobox-placeholder-';
        var id28 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 33, undefined, false);
        buffer += getExpressionUtil(id28, true);
        buffer += '&quot;\r\n           for=&quot;ks-combobox-input-';
        var id29 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 34, undefined, false);
        buffer += getExpressionUtil(id29, true);
        buffer += '&quot;\r\n            style=\'display:';
        var config30 = {};
        var params31 = [];
        var id32 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;value&quot;, 0, 35, undefined, true);
        params31.push(id32);
        config30.params = params31;
        config30.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += 'none';
            return buffer;
        };
        config30.inverse = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += 'block';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config30, &quot;if&quot;, 35);
        buffer += ';\'\r\n    class=&quot;';
        var config34 = {};
        var params35 = [];
        params35.push('placeholder');
        config34.params = params35;
        var id33 = getPropertyOrRunCommandUtil(engine, scopes, config34, &quot;getBaseCssClasses&quot;, 0, 36, true, undefined);
        buffer += id33;
        buffer += '&quot;&gt;\r\n    ';
        var id36 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;placeholder&quot;, 0, 37, undefined, false);
        buffer += getExpressionUtil(id36, true);
        buffer += '\r\n    &lt;/label&gt;\r\n&lt;/div&gt;\r\n';
        return buffer;
    }
});</pre>
</body>
</html>
